#ifndef NETWORKMESSAGE_H
#define NETWORKMESSAGE_H

#include <QString>
#include <QMap>
#include <QDebug>

class NetworkMessage
{
public:
    NetworkMessage();
    NetworkMessage(QString type);
    void setData(QString key, QString value);
    QString getData(QString key);
    void setType(QString type);
    QString getType();


    QString serialize();
private:
    QMap<QString, QString> dataStorage;
    QString type;
};

#endif // NETWORKMESSAGE_H
